import request from '@/utils/request'

// 查询zhandian列表
export function listQuyuzhan(query) {
  return request({
    url: '/system/quyuzhan/list',
    method: 'get',
    params: query
  })
}

// 查询zhandian详细
export function getQuyuzhan(id) {
  return request({
    url: '/system/quyuzhan/' + id,
    method: 'get'
  })
}

// 新增zhandian
export function addQuyuzhan(data) {
  return request({
    url: '/system/quyuzhan',
    method: 'post',
    data: data
  })
}

// 修改zhandian
export function updateQuyuzhan(data) {
  return request({
    url: '/system/quyuzhan',
    method: 'put',
    data: data
  })
}

// 删除zhandian
export function delQuyuzhan(id) {
  return request({
    url: '/system/quyuzhan/' + id,
    method: 'delete'
  })
}
